package org.hy.common.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author hy
 * @version 1.0
 * @date 2020-09-22 13:33
 */
public class MapUtils {

    private MapUtils(){
        throw new AssertionError("no instance for you.");
    }

    public static <K, V> Map<K, V> of(K k, V v){
        final HashMap<K, V> map = new HashMap<>();
        map.put(k, v);
        return map;
    }
}
